<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>people</title>
</head>
<body>
<table>
    <thead>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>性别</td>
    </tr>
    </thead>
    <tbody>
    {{range $index, $u := .}}
        <tr>
            <td>{{$index}}</td>
            <td>{{$u.Name}}</td>
            <td>{{$u.Age}}</td>
            <td>{{$u.Male}}</td>
        </tr>
    {{end}}
    </tbody>
</table>
</body>
</html>